package org.dromara.system.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.dromara.system.domain.CreditCardRewardRecords;
import org.dromara.system.domain.vo.CreditCardRewardRecordsVo;
import org.dromara.system.domain.bo.CreditCardRewardRecordsBo;
import org.dromara.common.mybatis.core.page.TableDataInfo;
import org.dromara.common.mybatis.core.page.PageQuery;

import java.util.Collection;
import java.util.List;

/**
 * 刷卡奖励Service接口
 *
 * @author Lion Li
 * @date 2025-07-15
 */
public interface ICreditCardRewardRecordsService extends IService<CreditCardRewardRecords> {

    /**
     * 查询刷卡奖励
     *
     * @param id 主键
     * @return 刷卡奖励
     */
    CreditCardRewardRecordsVo queryById(Long id);

    /**
     * 分页查询刷卡奖励列表
     *
     * @param bo        查询条件
     * @param pageQuery 分页参数
     * @return 刷卡奖励分页列表
     */
    TableDataInfo<CreditCardRewardRecordsVo> queryPageList(CreditCardRewardRecordsBo bo, PageQuery pageQuery);


    TableDataInfo<CreditCardRewardRecordsVo> listReception(CreditCardRewardRecordsBo bo, PageQuery pageQuery);


    /**
     * 查询符合条件的刷卡奖励列表
     *
     * @param bo 查询条件
     * @return 刷卡奖励列表
     */
    List<CreditCardRewardRecordsVo> queryList(CreditCardRewardRecordsBo bo);

    /**
     * 新增刷卡奖励
     *
     * @param bo 刷卡奖励
     * @return 是否新增成功
     */
    Boolean insertByBo(CreditCardRewardRecordsBo bo);

    /**
     * 修改刷卡奖励
     *
     * @param bo 刷卡奖励
     * @return 是否修改成功
     */
    Boolean updateByBo(CreditCardRewardRecordsBo bo);

    /**
     * 校验并批量删除刷卡奖励信息
     *
     * @param ids     待删除的主键集合
     * @param isValid 是否进行有效性校验
     * @return 是否删除成功
     */
    Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);

}
